home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / lib / gcc-lib / ppc-amigaos / 2.95.1 / sys-include / powerup / ppcpragmas / translator_pragmas.h < prev    next >
C/C++ Source or Header  |  2000-03-13  |  1KB  |  50 lines

  1. /* Automatically generated header! Do not edit! */
  2.  
  3. #ifndef _PPCPRAGMA_TRANSLATOR_H
  4. #define _PPCPRAGMA_TRANSLATOR_H
  5. #ifdef __GNUC__
  6. #ifndef _PPCINLINE__TRANSLATOR_H
  7. #include <powerup/ppcinline/translator.h>
  8. #endif
  9. #else
  10.  
  11. #ifndef POWERUP_PPCLIB_INTERFACE_H
  12. #include <powerup/ppclib/interface.h>
  13. #endif
  14.  
  15. #ifndef POWERUP_GCCLIB_PROTOS_H
  16. #include <powerup/gcclib/powerup_protos.h>
  17. #endif
  18.  
  19. #ifndef NO_PPCINLINE_STDARG
  20. #define NO_PPCINLINE_STDARG
  21. #endif/* SAS C PPC inlines */
  22.  
  23. #ifndef TRANSLATOR_BASE_NAME
  24. #define TRANSLATOR_BASE_NAME TranslatorBase
  25. #endif /* !TRANSLATOR_BASE_NAME */
  26.  
  27. #define    Translate(inputString, inputLength, outputBuffer, bufferSize)    _Translate(TRANSLATOR_BASE_NAME, inputString, inputLength, outputBuffer, bufferSize)
  28.  
  29. static __inline LONG
  30. _Translate(void *TranslatorBase, STRPTR inputString, long inputLength, STRPTR outputBuffer, long bufferSize)
  31. {
  32. struct Caos    MyCaos;
  33.     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  34. //    MyCaos.M68kStart    =    NULL;
  35. //    MyCaos.M68kSize        =    0;
  36.     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  37. //    MyCaos.PPCStart        =    NULL;
  38. //    MyCaos.PPCSize        =    0;
  39.     MyCaos.a0        =(ULONG) inputString;
  40.     MyCaos.d0        =(ULONG) inputLength;
  41.     MyCaos.a1        =(ULONG) outputBuffer;
  42.     MyCaos.d1        =(ULONG) bufferSize;
  43.     MyCaos.caos_Un.Offset    =    (-30);
  44.     MyCaos.a6        =(ULONG) TranslatorBase;    
  45.     return((LONG)PPCCallOS(&MyCaos));
  46. }
  47.  
  48. #endif /* SASC Pragmas */
  49. #endif /* !_PPCPRAGMA_TRANSLATOR_H */
  50.